package Day6;

import java.util.Scanner;
// 1:无需package
// 2: 类名必须Main, 不可修改
/**
 * 2020JavaB真题:数青蛙
 * https://www.lanqiao.cn/problems/2359/learning/
 */
public class Main2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int x = 20 * 10;
        for(int i = 1; i <= 20; i++){
          int a = count(i);//青蛙个数
          int b = count(i);
          int c = count(i * 2);
          int d = count(i * 4);
          x += a + b + c + d;
        }
        System.out.println(x);
        scan.close();
    }

    public static int count(int x){
      if(x <= 10) return 1;
      if(x <= 20) return 2;
      if(x % 10 == 0) return 2;
      return 3;
    }
}